<div id="app" style="width: 800px; margin:100px auto; padding: 10px; background-color: #FFF;" >
    <variant :variant="1" @change="change" :param="param" :sku="sku" ></variant>

    

    {{sku}}
</div>

<script>
import variant from './goods/goods-sku.vue';

let app = admin.createApp({
    components:{
        variant
    },
    data() {
        return {
            param:{ "重量": [ { "title": "绿色", "image": "/20240704/172007624995357731.jpg" }, { "title": "红色", "image": "/20240218/170824254564911801.jpg" } ], "配置": [ { "title": "256G", "image": "" }, { "title": "518G", "image": "" }, { "title": "1T", "image": "" }, { "title": "2T", "image": "" }]} ,
            sku:[]
        }
    },
    methods:{
        change(paramList,skuList){
            this.param = paramList;
            this.sku = skuList;
        }
    }
}).mount('#app');
</script>